package homework02.test01;

public class Coder {

    private String name;

    private int id;

    private double salary;

    private double bonus;

    public Coder(String name, int id, double salary, double bonus) {
        setName(name);
        setId(id);
        setSalary(salary);
        setBonus(bonus);
    }

    public Coder() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public void work() {

        System.out.print("工号:" + getId() + ", 基本工资:" + getSalary() + "的程序员" + getName());
        System.out.print("正在努力的敲着代码....");
        System.out.println("操作步骤如下:");
        System.out.println("1. 声明一个HelloWorld.java类");
        System.out.println("2. 输出hello, world");
    }
}
